<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="maintable"><br>

    <div class="subtable nav" style="width: 100%">
        <a href="index.php">外地人在北京</a> &raquo;
        控制面板
    </div>
    <br>

    <table cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <jsp:include page="leftMenu.jsp"/>


            <td valign="top">

                <div style="border: 1px solid #D5EED3; background-color: #EDF8EC; padding:8px 0px;">
                    &nbsp;&nbsp;&nbsp;<img src="http://images.5d6d.com/orig/common/notice.gif">
                    您好 ${sessionUser.nickname} ，欢迎进入控制面板，这里提供相关的资料设定与论坛快捷功能等。
                </div>
                <br>


                <table width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top">
                            <div class="spaceborder" style="width: 100%">
                                <table cellspacing="0" cellpadding="5" width="100%" align="center">
                                    <tr class="header">
                                        <td colspan="3">最近的五条短消息</td>
                                    </tr>

                                    <tr class="category">
                                        <td width="52%" align="left">标题</td>
                                        <td width="23%" align="center">来自</td>
                                        <td width="25%" align="center">时间</td>
                                    </tr>

                                    <c:forEach items="${actionBean.myMessageList.elements}" var="item">
                                        <tr class="row" onMouseOver="this.style.backgroundColor='#F3FDF2'"
                                            onMouseOut="this.style.backgroundColor='#FFF'">
                                            <c:choose>
                                            <c:when test="${item.readed==true}">
                                            <td style="table-layout: fixed">
                                                </c:when>
                                                <c:otherwise>
                                            <td style="table-layout: fixed">
                                                </c:otherwise>
                                                </c:choose>
                                                <a href="#" target="_blank"><b>${item.title}</b></a>
                                            </td>
                                            <td align="center">${item.sendNickName}</td>
                                            <td align="center" class="smalltxt">${item.createTime}</td>
                                        </tr>
                                    </c:forEach>
                                </table>
                            </div>
                            <br>


                        </td>
                        <td valign="top" align="right" width="200">


                            <div class="spaceborder" style="width: 190px !important;width: 197px;">
                                <table cellspacing="0" cellpadding="5" width="100%" align="center">
                                    <tr>
                                        <td style="line-height: 20px" colspan="2">
                                            <center>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                                       style="table-layout: fixed; overflow: hidden">
                                                    <tr>
                                                        <td align="center">
                                                            <div class="avatar" style="width:120px;">
                                                                <IFRAME marginheight="0" marginwidth="0" frameborder="0"
                                                                        width="120" height="168" scrolling="NO"
                                                                        src="http://showlib.5d6d.com/showavatar.php?positionid=bbs&passport=herowangking_gmail&clubid=5d6d&groupid=5d6d&keycode=6b6ce0d3&floor=1&male=1&width=120"></IFRAME>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <span class="bold">${actionBean.user.nickname}</span>
                                                <br>
                                                积分: <span class="bold smalltxt">${actionBean.user.point}</span><br>
                                                <%--等级: <span class="bold smalltxt">${actionBean.oldUser.roleId}</span> <br>--%>
                                                <br>
                                            </center>
                                        </td>
                                    </tr>

                                    <tr class="header">
                                        <td colspan="2"><span class="left">好友列表</span><span class="right"
                                                                                            style="font-weight: normal;">&rsaquo;&rsaquo;&nbsp;<a
                                                href="memcp.php?action=buddylist">编辑好友列表</a></span></td>
                                    </tr>

                                    <tr class="category">
                                        <td colspan="2">在线</td>
                                    </tr>
                                    <tr class="category">
                                        <td colspan="2">离线</td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br>
    <br>
</div>